<?php

namespace Portal\RequestTutorBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;

class RequestTutorType extends AbstractType
{
  /**
   * 
   * @param \Symfony\Component\Form\FormBuilder $builder
   * @param array $options
   */
  public function buildForm(FormBuilderInterface $builder, array $options)
  {
    $builder
            ->add('category', 'entity', array('class' => 'Portal\RequestTutorBundle\Entity\SubjectCategory', 'property' => 'name',))
            ->add('subject', 'entity', array('class' => 'Portal\RequestTutorBundle\Entity\Subject', 'property' => 'name', ))            
            ->add('message', 'textarea')
            ->add('first_name', 'text')
            ->add('last_name', 'text')
            ->add('email', 'text')
            ->add('phone1', 'text')
            ->add('phone2', 'text')
            ->add('address', 'textarea');
    ;
  }

  public function getName()
  {
    return 'portal_messagebundle_requesttutortype';
  }

}
